package com.ss.android.article.base.feature.model;

import com.ss.android.image.model.ImageInfo;
import org.json.JSONObject;

public final class VideoAlbumInfo {
    public String title;
    public String source;
    public String url;
    public int commentCount;
    public String showTag;
    public long mediaId;
    public int colNo;
    public long videoSubject;
    public ImageInfo middleImage;
    public com.ss.android.article.base.feature.detail2.bb j;

    public VideoAlbumInfo() {

    }

    public final void initWithJSONObject(JSONObject jo) {
        if(jo != null) {
            this.title = jo.optString("title");
            this.source = jo.optString("source");
            this.url = jo.optString("url");
            this.commentCount = jo.optInt("comment_count");
            this.middleImage = ImageInfo.fromJson(jo.optJSONObject("middle_image"), false);
            this.showTag = jo.optString("show_tag");
            jo.optString("media_name");
            this.mediaId = jo.optLong("media_id");
            this.colNo = jo.optInt("col_no");
            this.videoSubject = jo.optLong("video_subject_id");
        }
    }
}

